﻿using System;
using System.Collections.Generic;
using System.Web.Mvc;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace App.Views.ViewModels
{
    public class EmployeeInfoViewModel
    {        
        [DisplayName("编号")]
        [Required(ErrorMessage="*")]
        [RegularExpression("\\d{3}",ErrorMessage="3位数字")]
        [StringLength(3,MinimumLength=3,ErrorMessage="只能是3位编号")]
        public string EmployeeNO{get;set;}
        [Required(ErrorMessage = "*")]
        [DisplayName("姓名")]
        public string EmployeeName{get;set;}
        [DisplayName("岗位")]
        public IEnumerable<SelectListItem> PositionType { get; set; }

        [DisplayName("编制")]
        public string EmployeeType{get;set;}
        [DisplayName("性别")]
        public string EmployeeSex{get;set;}

        [DisplayName("出生日期")]        
        public DateTime? EmployeeBirthday{get;set;}

        [DisplayName("民族")]
        public string EmployeeNation{get;set;}
        [DisplayName("职务")]
        public string EmployeeTitle{get;set;}
        [DisplayName("政治面貌")]
        public string PoliticalFace{get;set;}
        [DisplayName("文化程度")]
        public string EducationDegree{get;set;}

        [DisplayName("入职时间")]        
        public DateTime? WorkTime { get; set; }
    }
}